<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Bezdelnick
 * Date: 30.04.13
 * Time: 14:03
 * To change this template use File | Settings | File Templates.
 */
$PATH = Config::getInstance()->getBasePath();
require_once("$PATH/persistence/Question.php");
require_once("AbstractController.php");

class QuestionController extends AbstractController
{
    public function getTableName()
    {
        return "questions";
    }

    public function getNewCopyOfObject()
    {
        return new Question();
    }

    public function getMappings()
    {
        return array(
            new OrmMapping("Question", "question")
        );
    }
}

